This project is my first trial of an application built with RealBasic™.
I previously made it under HyperCard 2.2 but got many troubles with Color management and making it as a stand-alone application (not a stack).
My own children (4, 6, 7) do not consider my implementation of this game as a must, but I took pleasure to design it with RealBasic™. ‘Design’ is the right word to describe the creation process.
I have discovered RealBasic™ a few weeks ago, with the DR1R32 release and got addicted right away. Why ? Because, for the first time since I'm using a Mac (1985), I have been able to create an application in a few minutes without having to :
- type every bit of code
- understand tons of ToolBox documentation
- manage makefiles
- use C or C++
My previous attempts at Mac programming were :
- HyperCard, easy to learn, execution is a bit slow, hard to make
applications.
- Applescript, easy to learn, execution is very slow, easy to make
applications.
- Mops, hard to learn, fast, hard to make applications.
- MPW-Oberon, nice OOP Language, easy to learn, powerful, BUT MPW is
really painful for newcomers and this approach needs a complete
understanding of the Mac ToolBox.
A grateful thank to the developpers’ team of this IDE !!!
The Game
A really simple implementation of SIMON, an electronic game that had a lot of success 20 years ago.
The computer play a musical sequence made of six different tones that correspond to a colored button on the play deck. The buttons are highlighted when the tone is played.
The player must reproduce the exact sequence by depressing the corresponding buttons.
If he succeeds, the sequence is added a new tone and is played again by the computer.
If he fails the game ends.
How to play
Click on ‘New Game’ button.
Reproduce the sequences.
Your score shows up in the middle of the Window with an Edit field and a progress bar in the center of the window.
You may quit by clicking on ‘Quit’ button, keyboard shortcut -Q, or menu item Quit of File Menu.
Possible future improvements (just for my own training on RealBasic™) :
- add a splashscreen at launch
- record high scores
- add different levels of difficulty
- request confirmation of the user for quitting
- add a way to switch between English and French language